package com.zuoshenge.main.excel.importt;

import com.zuoshenge.main.entity.Course;
import com.zuoshenge.main.excel.importt.listener.CourseExcelImportListener;
import com.zuoshenge.tool.excel.BaseEasyExcelImport;
import com.zuoshenge.tool.excel.ExcelDataModelListener;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class CourseExcelImport extends BaseEasyExcelImport<Course> {

    @Resource
    private CourseExcelImportListener courseExcelImportListener;

    @Override
    // 获取实体类
    protected Class<Course> getDataModelClass() {
        return Course.class;
    }

    @Override
    public void doImport(String filePath, int numberOfSheets, ExcelDataModelListener<Course> excelDataModelListener) {
        super.doImport(filePath, numberOfSheets, courseExcelImportListener);
    }
}
